<?php
namespace app\flash\validate;
use think\Validate;
class User extends Validate
{
    protected $rule = [
        'phone'       => 'require|length:11|number',
        'password'    => 'require',
        'newpassword' => 'require'
    ];
    protected $message = [
        'phone'    => '手机号必须是数字',
        'phone.max'=> '请输入11为手机号',
        'password' => '密码必须填写',
        'newpassword' => '确认密码不得为空'
    ];
}
